Not today...

Filed under terraform...

comments

Snippet

Terraform PKI

Once upon a time, I tried to setup an infrastructure using Terraform and Docker. Spoiler alert: I reevaluated my setup to go for a Kubernetes approach which is easier and more robust. However, this experiment gave me the opportunity to better understand a really important part of a self hosted infrastructure: how to set up a PKI. Disclaimer: I may not use the proper terms or be sloppy on some concepts. Read More...

Tagged terraform

comments

Snippet

Terraform retrieve sensible data

Another post on Terraform. Here to share a little snippet to retrieve some data from your Terraform state. When you are dealing with some Terraform resources or writing modules you may encounter the sensitive keyword/value (here is a bit of doc). This is handy to avoid leaking some data, but from time to time you may want to extract one of those. Code For this article let’s imagine I am creating an aws_iam_user for another team to access some specific resources. Read More...

Tagged cli , terraform

comments

Tuto

Debug Terraform

How to easily debug Terraform? This was one of my biggest problem when dealing with the tool. I followed instructions to use some output ressources or browse the “debug” logs. Disclaimer: none of it was working properly. So here is what I am actually doing and I am perfectly happy with. Oh! And just before starting to enable debug logs you have to pass the environment variable TF_LOG=debug (because there is no man page and it is not written in the --help content). Read More...

Tagged cli , terraform